<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><%= @category ? @category.root.title : "首页" %> - <%= ENV['WEBSITE_TITLE'] %></title>
<meta name="renderer" content="webkit">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<meta name="description" content="<%= ENV['WEBSITE_TITLE'] %>为神农架地区内各工业企业、商贸企业、个体网店、电子商务创业企业、电子商务服务机构等提供电子商务服务及对接服务。" />
<meta name="keywords" content="<%= ENV['WEBSITE_TITLE'] %>,个体网店,电子商务,电子商务创业,电商培训,电商服务" />
<link rel="stylesheet" href="/css/common.css" type="text/css" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(function () {
  var winw = parseInt($(window).width());
  $('.menu .nav .box').css({'padding-left':(winw-960)/2,'padding-right':(winw-960)/2,'margin-left':-(winw-960)/2});

  var navLi=$(".menu .nav li");
  navLi.mouseover(function () {
    $(this).find("a").addClass("current");
    $(this).find(".box").stop().slideDown(200);
  })
  navLi.mouseleave(function(){
    $(this).find("a").removeClass("current");
    $(this).find(".box").stop().slideUp(200);
  })
})
</script>
</head>

<body>

<!--头部start-->
<div class="index-top">
  <div class="top-line"></div>
  <div class="grid ovf">
    <div class="fl logo">
      <a href="/"><img src="/images/logo_with_text.png" width="414"></a>
    </div>
    <div class="menu fl">
      <ul class="nav">
        <li><a href="/">首页</a></li>
        <% Cip::Category.hash_tree(depth: 2).each do |category, children| %>
          <% next if category.hidden %>
          <li><a href="<%= category.url %>"><%= category.title %></a>
            <div class="box">
              <% children.keys.reverse.each do |category| %><a href="<%= category.url %>"><%= category.title %></a><% end %>
            </div>
          </li>
        <% end %>
      </ul>
    </div>
  </div>
</div>
<!--头部end-->

<%= yield %>

<div class="clear" >
  <div class="top-line"></div>
  <div class="foot-m2">
    <div class="grid ovf">
      <div class="con fl">
        <ul class="bt-menu fl">
          <% Cip::Category.find_by(slug: 'about').children.each do |category| %>
            <li>
              <p class="b cd0 f14"><%= category.title %></p>
              <p class="lh22 c96 mt15">
              <% category.pages.each do |page| %>
                <a href="<%= page.url %>"><%= page.title %></a><br>
              <% end %>
              </p>
            </li>
          <% end %>
        </ul>
        <div class="fl wx">
        <p><img src="/images/wx.png" width="100"></p>
        <p class="fyh f14 cff">服务中心微信公众号</p>
        </div>
        <div class="clear fl line"></div>
        <div class="clear tec c96 fyh">
          <p>
            版权所有 <%= ENV['WEBSITE_TITLE'] %> 2017 <br />
            ICP备案号：<a href="<%= ENV['WEBSITE_ICP_URL'] %>"><%= ENV['WEBSITE_ICP_NO'] %></a>
          </p>
        </div>
      </div>
    </div>
  </div>
</div>

</body>
</html>
